package com.hb.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
//@ApiModel("学生实体类")
@TableName("student")
public class Student {

    @TableId(type = IdType.AUTO)
    private Integer id;
    //@ApiModelProperty("密码")
    @TableField("password") // 映射到数据库字段 "nickname"
    private String password;
    //@ApiModelProperty("真实姓名")
    @TableField("realname") // 映射到数据库字段 "nickname"
    private String realname;
    //@ApiModelProperty("学生姓名")
    @TableField("name") // 映射到数据库字段 "nickname"
    private String name;
    //@ApiModelProperty("学生年龄")
    @TableField("age") // 映射到数据库字段 "nickname"
    private int age;
    //@ApiModelProperty("学生性别")
    @TableField("male") // 映射到数据库字段 "nickname"
    private int male;
    //@ApiModelProperty("学生学号")
    @TableField("studentno") // 映射到数据库字段 "nickname"
    private String studentno;
    public Student(){}
    public Student(String password, String realname, String name, int age, int male, String studentno) {
        this.password = password;
        this.realname = realname;
        this.name = name;
        this.age = age;
        this.male = male;
        this.studentno = studentno;
    }
}
